package net.betou.cms.dao.main.impl;

import net.betou.cms.dao.main.CmsUserExtDao;
import net.betou.cms.entity.main.CmsUserExt;
import net.betou.common.hibernate3.HibernateBaseDao;

import org.springframework.stereotype.Repository;

@Repository
public class CmsUserExtDaoImpl extends HibernateBaseDao< CmsUserExt, Integer > implements CmsUserExtDao{
	public CmsUserExt findById( Integer id ) {
		CmsUserExt entity = get( id );
		return entity;
	}

	public CmsUserExt save( CmsUserExt bean ) {
		getSession( ).save( bean );
		return bean;
	}

	@Override
	protected Class< CmsUserExt > getEntityClass( ) {
		return CmsUserExt.class;
	}
}